<template>
    <div id="headPosition">
        <el-row type="flex" style="height:80%;display:flex;align-items: flex-end">
                       <el-col :xs="2" :sm="2" :md="2" :offset="1" class="imgCol">
                        <img v-bind:src="backIcon" class="backSize" @click="back"/>
                    </el-col>
                    <el-col :xs="6" :sm="6" :md="6" :offset="6" class="imgCol"> 
                        <span class="titleSize">{{name}}</span>
                    </el-col>
                    <el-col :xs="3" :sm="3" :md="3" :offset="5" class="imgCol">
                        <span class="titleSize" @click="editNickName">{{action}}</span>
                    </el-col>
        </el-row>    
    </div>
</template>
<script>
import backIcon from '../../assets/img/mine/geRenZhongXin/back.png'
export default {
    name:'background',
   data(){
      return{
            backIcon:backIcon,
      }
   },
    mounted(){


         
        var head=document.getElementById("headPosition");
        var headHeight=document.documentElement.clientHeight/30 *4 ;
        console.log("headHeight:"+headHeight);
        head.style.height=headHeight+"px";

    },
    methods:{
          back(){
            console.log("back:");
            this.$router.go(-1);
        },
    }
}
</script>
<style>
#headPosition{
    background-color: #53cdf5;
    color: #707070;
}

.backSize{
    height: 26px;
}
.titleSize{
    font-size:1.125em;
    color:#ffffff
}
@media screen and (max-width: 340px){
  .backSize{
      height: 22px;
  }
  .titleSize{
      font-size: 1em;
  }
}
</style>
